/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package tracksuite.presentation.tag;

import tracksuite.bussiness.tag.TagBO;
import tracksuite.integration.tag.TagTO;
import tracksuite.presentation.GenericBean;

/**
 *
 * @author mfloriano
 */
public class TagBean extends GenericBean<TagBO,TagTO> {
    
    private String name;
    
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String actionInsert() {
        TagTO tagTO = new TagTO();
        tagTO.setName(name);
        bo.insert(tagTO);
        return "OK";
    }

    @Override
    public String actionDelete() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public String actionUpdate() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

}
